package FinalTest8;

import java.time.LocalDateTime;
import java.time.chrono.ChronoLocalDateTime;
import java.util.Locale;
import java.util.Scanner;

public class Time {
    public static void main(String[] args) {
        String i="n";
        System.out.println("请输入一个字母");
        Scanner scn = new Scanner(System.in);
       String s=scn.next();


        LocalDateTime now = LocalDateTime.now();
        while (true){
         if (s.equals(i)){
             break;

         }else {
             System.out.println(now+":循环操作中~~~~按n退出循环");
         }
        }


    }
}
